<%@ include file="connect.jsp" %>

<%
    String idnya = request.getParameter("id");
    String catname = request.getParameter("nama");


    stat.executeUpdate("Delete from CATEGORIES where categoryID = '" + idnya + "' ");


    response.sendRedirect("categories.jsp?respon=Success to delete category " + catname);


%>